package com.py.credit.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.py.credit.dao.AppAllDao;
import com.py.credit.service.AppAllService;
@Service
public class AppAllServiceImpl implements AppAllService{
	@Autowired
	private AppAllDao appAllDao;

	@Override
	public String selectDY(String userid, String type) {
		return appAllDao.selectDY(userid, type);
	}
	
	@Transactional
	@Override
	public void deleteByIdType(String userid, String type) {
		appAllDao.deleteByIdType(userid, type);
	}
	
	@Transactional
	@Override
	public void addDY(String type, String userid, String dyidlist) {
		appAllDao.addDY(type, userid, dyidlist);
	}


	@Override
	public Map<String, Object> getQypj(String qymc, String riqi) {
		return appAllDao.getQypj(qymc, riqi);
	}

}
